using Brouteforce.NewManagers;
using Brouteforce.Screens.PlayingScreen;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input;
using InputManager = Brouteforce.NewManagers.InputManager;

namespace Brouteforce.UserInterface.UIControls.MenuItems
{
    public class StartGameAbstractMenuItem : AbstractMenuItem
    {
        public StartGameAbstractMenuItem(string name, Rectangle surroundingRectangle)
            : base(name, surroundingRectangle)
        {
        }


        public override void Update()
        {
            if (InputManager.Instance.IsMouseClickedOn(RelativeUIcontrolRectangle))
            {
                //ScreenManager.PushScreen(new PlayingScreen());
            }

            if (IsFocused())
            {
                foreach (var key in InputManager.CurrentClickedKeys)
                {
                    switch (key)
                    {
                        case Keys.Enter:
                            //ScreenManager.PushScreen(new PlayingScreen());
                            break;
                    }
                }
            }
        }
    }
}
